export enum ApiMethod {
  GET = "GET",
  POST = "POST",
  PUT = "PUT",
  DELETE = "DELETE",
}

export enum ApiStatus {
  Disabled = 0,
  Enabled = 1,
}

export interface ApiConfig {
  id?: number;
  name: string;
  path: string;
  method: ApiMethod;
  status: ApiStatus;
  description?: string;
  dataSourceId: number;
  requestParams?: string; // JSON string
  responseSchema?: string; // JSON string
  createdAt?: string;
  updatedAt?: string;
}

export interface ApiQuery {
  keyword?: string;
  page: number;
  pageSize: number;
}

export interface ApiResponse {
  list: ApiConfig[];
  total: number;
}
